package com.java01.misc.rundll32;

import java.io.IOException;

public class MailTo {

	public static void mailTo(String emailAddress) {
		String[] cmd = new String[] { "rundll32", "url.dll", "FileProtocolHandler", "mailto:" + emailAddress };
		try {
			Runtime.getRuntime().exec(cmd);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		mailTo("recipient@example.com");
	}
}
